package com.zhiche.lisa.bms.dao.model.cost;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 费用信息
 * </p>
 *
 * @author zhangkun
 * @since 2018-09-10
 */
@TableName("lisa_cost_mid")
public class CostMid extends Model<CostMid> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 合同id
     */
	private String code;
    /**
     * 合同类型
     */
	@TableField("contract_type")
	private String contractType;
    /**
     * 费用代码
     */
	@TableField("rate_item")
	private String rateItem;
    /**
     * 费用名称
     */
	@TableField("item_name")
	private String itemName;
    /**
     * 计量因子值
     */
	@TableField("measure_factorl_value")
	private BigDecimal measureFactorlValue;
    /**
     * 计量因子
     */
	@TableField("measure_factorl")
	private String measureFactorl;
    /**
     * 合同应付里程
     */
	private BigDecimal attribute1;
    /**
     * 税率
     */
	@TableField("tax_rate")
	private BigDecimal taxRate;
    /**
     * 单价
     */
	private BigDecimal price;
    /**
     * 计费合计金额
     */
	private BigDecimal amount;
    /**
     * 计费要素
     */
	@TableField("factor_detail")
	private String factorDetail;
    /**
     * 计费摘要
     */
	@TableField("rate_detail")
	private String rateDetail;
    /**
     * 计费单据号
     */
	@TableField("bill_id")
	private String billId;
    /**
     * 付方
     */
	@TableField("partya_id")
	private String partyaId;
    /**
     * 付方名称
     */
	@TableField("partya_name")
	private String partyaName;
    /**
     * 收方
     */
	@TableField("partyb_id")
	private String partybId;
    /**
     * 收方名称
     */
	@TableField("partyb_name")
	private String partybName;
    /**
     * 创建时间
     */
	@TableField("insert_date")
	private Date insertDate;
    /**
     * 域
     */
	@TableField("domain_name")
	private String domainName;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getContractType() {
		return contractType;
	}

	public void setContractType(String contractType) {
		this.contractType = contractType;
	}

	public String getRateItem() {
		return rateItem;
	}

	public void setRateItem(String rateItem) {
		this.rateItem = rateItem;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public BigDecimal getMeasureFactorlValue() {
		return measureFactorlValue;
	}

	public void setMeasureFactorlValue(BigDecimal measureFactorlValue) {
		this.measureFactorlValue = measureFactorlValue;
	}

	public String getMeasureFactorl() {
		return measureFactorl;
	}

	public void setMeasureFactorl(String measureFactorl) {
		this.measureFactorl = measureFactorl;
	}

	public BigDecimal getAttribute1() {
		return attribute1;
	}

	public void setAttribute1(BigDecimal attribute1) {
		this.attribute1 = attribute1;
	}

	public BigDecimal getTaxRate() {
		return taxRate;
	}

	public void setTaxRate(BigDecimal taxRate) {
		this.taxRate = taxRate;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getFactorDetail() {
		return factorDetail;
	}

	public void setFactorDetail(String factorDetail) {
		this.factorDetail = factorDetail;
	}

	public String getRateDetail() {
		return rateDetail;
	}

	public void setRateDetail(String rateDetail) {
		this.rateDetail = rateDetail;
	}

	public String getBillId() {
		return billId;
	}

	public void setBillId(String billId) {
		this.billId = billId;
	}

	public String getPartyaId() {
		return partyaId;
	}

	public void setPartyaId(String partyaId) {
		this.partyaId = partyaId;
	}

	public String getPartyaName() {
		return partyaName;
	}

	public void setPartyaName(String partyaName) {
		this.partyaName = partyaName;
	}

	public String getPartybId() {
		return partybId;
	}

	public void setPartybId(String partybId) {
		this.partybId = partybId;
	}

	public String getPartybName() {
		return partybName;
	}

	public void setPartybName(String partybName) {
		this.partybName = partybName;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public String getDomainName() {
		return domainName;
	}

	public void setDomainName(String domainName) {
		this.domainName = domainName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CostMid{" +
			", id=" + id +
			", code=" + code +
			", contractType=" + contractType +
			", rateItem=" + rateItem +
			", itemName=" + itemName +
			", measureFactorlValue=" + measureFactorlValue +
			", measureFactorl=" + measureFactorl +
			", attribute1=" + attribute1 +
			", taxRate=" + taxRate +
			", price=" + price +
			", amount=" + amount +
			", factorDetail=" + factorDetail +
			", rateDetail=" + rateDetail +
			", billId=" + billId +
			", partyaId=" + partyaId +
			", partyaName=" + partyaName +
			", partybId=" + partybId +
			", partybName=" + partybName +
			", insertDate=" + insertDate +
			", domainName=" + domainName +
			"}";
	}
}
